package com.example.studentstatusmanagement.service;

import com.example.studentstatusmanagement.mapper.BuildingMapper;
import com.example.studentstatusmanagement.pojo.Building;
import com.example.studentstatusmanagement.pojo.BuildingExample;
import com.example.studentstatusmanagement.pojo.doo.ReqRoom;
import com.example.studentstatusmanagement.pojo.dto.SRoom;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BuildingServiceImpl implements BuildingService {

    @Resource
    private BuildingMapper buildingMapper;
    @Override
    public List<SRoom> selectBuildingsInfo(ReqRoom room) {
        return buildingMapper.selectBuildingsInfo(room);
    }

    @Override
    public int insertSelective(Building record) {
        return buildingMapper.insertSelective(record);
    }

    @Override
    public List<Building> selectByExample(BuildingExample example) {
        return buildingMapper.selectByExample(example);
    }

    @Override
    public int updateByPrimaryKeySelective(Building record) {
        return buildingMapper.updateByPrimaryKeySelective(record);
    }
}
